package com.lwt.db137.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwt.db137.bean.Menu;
import com.lwt.db137.bean.User;
import com.lwt.db137.mapper.UserMapper;
import com.lwt.db137.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description  
 * @version 1.0 
 * @author lwt
 * @date 2024/12/24 11:48
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;


    @Override
    public List<Menu> getMenuList(Integer userid) {
        return userMapper.getMenuList(userid);
    }

    @Override
    public int addUser(User user) {
        return userMapper.insert(user);
    }
}
